package com.xds.gulimall.order;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 1.引入场景启动器 amqp spring-boot-starter-amqp
 * 2.开启rabbitmq功能 @EnableRabbit
 * @author : baixu
 * @date : 22:08 2021/11/9
 */
@SpringBootApplication
@EnableRabbit
@EnableFeignClients
@EnableDiscoveryClient
@EnableRedisHttpSession
@EnableAspectJAutoProxy(exposeProxy = true)//开启aspectj 动态代理功能，以后所有的动态代理都是aspectj 即使没有接口 也可以创建动态代理
public class GulimallOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(GulimallOrderApplication.class,args);
    }
}
